const controller = require('../controllers/test')
const auth = require('../middlewares/auth')
const router = require('koa-router')();
// 发表评论需要权限 accessToken
// auth 中间件 抽离健全的功能 middlewares
// 1. accesstoken -> json uid
// 2. 任务继续交给comment 控制器 next
router.post('/comment', auth, controller.comment)

module.exports = router.routes();